package com.ruijie.autotest.log.validation.hangzhouxiruan;

import com.ruijie.autotest.log.core.data.ITable;
import org.springframework.context.ApplicationContext;

import java.util.List;

public class CompositeColumnVerification implements IVerification {
	private final ApplicationContext validators;

	private final List<ITable> tables;

	// FIXME: 2021/1/15  NEEDED REFACTORING !!!  generalize it
	public CompositeColumnVerification(ApplicationContext validators, List<ITable> tables) {
		this.validators = validators;
		this.tables = tables;
	}

	@Override
	public void verify() {
		for (ITable table : tables) {
			new ColumnVerification(validators, table).verify();
		}
	}
}
